package org.ytor.core.sqlflow.dsl.template.node.support;

import org.ytor.core.sqlflow.dsl.template.node.TemplateNode;

import java.util.List;

/**
 * created by yangtong on 2025/8/7 11:57:24
 * <br/>
 * 大AST，跟表达式的AST类似
 * 块节点，可以是顶层节点（整个模板），也可以是if块和for块
 */
public class BlockNode implements TemplateNode {
    public final List<TemplateNode> children;

    public BlockNode(List<TemplateNode> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "BlockNode(" + children.size() + " children)";
    }
}